package com.dmall.datasource.manage;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * 数据源路由类
 * @author xiao1.wang
 * @date 2019-06-25 11:23:16
 */
public class PromotionRoutingDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return PromotionDataSourceHandle.getDataSource();
    }
}
